<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<title>Grouped ScrollableViews</title>
		<link href="../themes/iphone/iphone.css" rel="stylesheet"></link>
		<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad: true"></script>

		<script language="JavaScript" type="text/javascript">
			//dojo.require("dojo.parser"); // Use the lightweight parser.
			dojo.require("dojox.mobile.parser");
			dojo.require("dojox.mobile");
			dojo.require("dojox.mobile.ScrollableView");

			dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx.easing");
		</script>
	</head>
	<body>
		<div id="view1" dojoType="dojox.mobile.View" selected="true">
			<div id="view11" dojoType="dojox.mobile.ScrollableView" selected="true">
				<h1 dojoType="dojox.mobile.Heading" fixed="top">View 1-1</h1>
				<h2 dojoType="dojox.mobile.RoundRectCategory">Grouped View Example</h2>
				<div dojoType="dojox.mobile.RoundRect" shadow="true">
					<pre style="font-size:12px">
 - View 1 (container)
     |
     *-- View 1-1
         View 1-2
 - View 2</pre>
				</div>
				<ul dojoType="dojox.mobile.RoundRectList">
					<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-1.png" moveTo="view12" transition="slide">
						View 1-2
					</li>
					<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-3.png" moveTo="view2" transition="slide">
						View 2
					</li>
				</ul>
			</div>

			<div id="view12" dojoType="dojox.mobile.ScrollableView">
				<h1 dojoType="dojox.mobile.Heading" fixed="top">View 1-2</h1>
				<ul dojoType="dojox.mobile.RoundRectList">
					<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-1.png" moveTo="view11" transition="slide" transitionDir="-1">
						View 1-1
					</li>
					<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-3.png" moveTo="view2" transition="slide">
						View 2
					</li>
				</ul>
			</div>
		</div>

		<div id="view2" dojoType="dojox.mobile.ScrollableView">
			<h1 dojoType="dojox.mobile.Heading" fixed="top">View 2</h1>
			<ul dojoType="dojox.mobile.RoundRectList">
				<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-1.png" moveTo="view1" transition="slide" transitionDir="-1">
					View 1
				</li>
			</ul>
		</div>
	</body>
</html>
